//////////////////////////////////////////////////////////////////////////
#include <RocketLua/RocketLua.hpp>


using namespace Rocket::Core::Lua;


//////////////////////////////////////////////////////////////////////////
LuaEventListenerInstancer::LuaEventListenerInstancer( lua_State* state )
:	Rocket::Core::EventListenerInstancer()
,	mpState( state )
{
}


Rocket::Core::EventListener* LuaEventListenerInstancer::InstanceEventListener(
	const Rocket::Core::String&	value,
	Rocket::Core::Element*		element )
{
	return new LuaEventListener( mpState, value, element );
}


void LuaEventListenerInstancer::Release()
{
	delete this;
}
